<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="广告资料" name="guanggao">
      <advert-form :currentNode="currentNode"/>
    </el-tab-pane>
    <el-tab-pane label="员工资料" name="yuangong">
      <employee-list :businessType="businessType" :businessId="currentNode.id" />
    </el-tab-pane>
  </el-tabs>
</template>
<script>
  import AdvertForm from "./form";
  import EmployeeList from "@/views/property/employee/index";
  export default {
    components:{ AdvertForm ,EmployeeList},
    data() {
      return {
        activeName: 'guanggao',
        businessType:'advert'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    },
    props: {
      currentNode: {
        type: Object,
        default:()=>{}
      },
    }
  };
</script>
